home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / tutor / pro30 / readchar.pas < prev    next >
Pascal/Delphi Source File  |  1991-02-04  |  404b  |  23 lines

  1.                                 (* Chapter 10 - Program 4 *)
  2. program Read_Some_Char_Data;
  3.  
  4. var  Letter : char;
  5.      Index  : byte;
  6.  
  7. begin
  8.    for Index := 1 to 5 do begin
  9.       Write('Input a character ');
  10.       Readln(Letter);
  11.       Writeln('The character input was an ',Letter);
  12.    end;
  13. end.
  14.  
  15.  
  16.  
  17.  
  18. { Result of execution
  19.  
  20. ( The results depend on the data entered at the keyboard)
  21.  
  22. }
  23.